{extend name="Public:public_template" /}
{block name="container"}
<div class="main-container">
    <div class="current-location">
        {include file="public/current_location" /}
    </div>
    <div class="four-cate">
        <a href="{$addfieldurl}">添加字段</a>
    </div>
    <div class="content-container">
        <form action="" name="myForm" method="post">
            <table cellpadding="0" cellspacing="0">
                <tr>
                   <th width="5%">序号</th>
                    <th width="5%">排序</th>
                   <th width="14%">字段别名</th>
                   <th width="10%">字段名</th>
                   <th width="10%">字段类型</th>
                   <th width="20%">描述</th>
                   <th>添加时间</th>
                   <th width="5%">是否显示</th>
                   <th width="8%">索引</th>
                   <th width="10%">操作</th>
                </tr>
                {volist name="list" id="vo"}
                    <tr>
                        <td>{$vo['orderkey']}</td>
                        <td>
                            <input type="hidden" name="where[]" value="{$vo['model_field_id']}"/>
                            <input type="text" name="list_order[]" value="{$vo['list_order']}" class="list-order-form"/>
                        </td>
                        <td>{$vo['title']}</td>
                        <td>{$vo['field']}</td>
                        <td>{$vo['type_name']}</td>
                        <td>{$vo['comment']}</td>
                        <td>{$vo['inputtime']}</td>
                        <td>{$vo['is_show']}</td>
                        <td>{$vo['isindex']}</td>
                        <td>
                            {if condition="$vo['is_system'] == 2"}
                                <span class="c_color">编辑</span>
                            {else}
                                <a href="{$vo['updateurl']}">编辑</a>
                            {/if}
                            {if condition="$vo['is_delete'] == 0"}
                                <a href="{$vo['deleteurl']}" class="delete">删除</a>
                            {else}
                                <span class="c_color">删除</span>
                            {/if}
                        </td>
                    </tr>
                {/volist}
            </table>
        </form>
        <div class="bottom-pages">
            <div class="bottom-pages-button">
                <input type="button" onclick="myForm.action='{$listorderUrl}';myForm.submit();" value="排序"/>
            </div>
            <div class="pages"></div>
        </div>
    </div>
</div>
{/block}